[CI] Migrate to npm-managed local Hugo and standardise Makefile targets - #59
Open
hebypaul wants to merge 2 commits into
Open
[CI] Migrate to npm-managed local Hugo and standardise Makefile targets#59hebypaul wants to merge 2 commits into
hebypaul wants to merge 2 commits into
Conversation
This migrates the project to use an npm-managed version of Hugo extended, resolving global dependency issues and standardizing the build process. Fixes layer5io#58 Signed-off-by: Heby T Paul <hebytpaul1111@gmail.com>
Signed-off-by: Heby T Paul <hebytpaul1111@gmail.com>
hebypaul
force-pushed
the
feature/hebypaul/58
branch
from
June 20, 2026 05:53
8c4e463 to
5617223
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR migrates the repository template to use an npm-managed local version of
hugo-extended. This establishes a highly reproducible local development environment for all new Layer5 projects generated from this template, eliminating the need for a global Hugo installation and preventing version mismatch issues.Fixes #58
Notes for Reviewers
Key changes include:
package.json: Addedhugo-extendedas a dev dependency and introduced standard NPM scripts (dev:site,dev:serve,build:production,clean, etc.) to explicitly handle Hugo invocations.Makefile: Added acheck-depstarget to validatenpmand the local Hugo binary before execution. Rerouted existing targets (setup,site,build,clean) to trigger their respective NPM scripts.README.mdandCONTRIBUTING.mdto remove references to global Hugo installation, emphasizing the unifiedmake setup->make siteworkflow for newcomers..gitignore: Addednode_modules/,public/, andresources/to properly ignore local dependency and build artifacts.Signed commits